﻿<%@ Page Title="" Language="C#" MasterPageFile="Navegacion.master" AutoEventWireup="true" CodeBehind="InformeDeCobros.aspx.cs" Inherits="autogestionAVEIT.InformeDeCobros" %>
<asp:Content ID="Content1" ContentPlaceHolderID="NavegacionHead" runat="server">

<script type="text/javascript">
     $(function () {
         $("#<%=txtFechaDesde.ClientID%>").datepicker({ dateFormat: 'dd/mm/yy' });
     })
    </script>
    <script type="text/javascript">
        $(function () {
            $("#<%=txtFechaHasta.ClientID%>").datepicker({ dateFormat: 'dd/mm/yy' });
        })
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('.solo-numero').keyup(function () {
                this.value = (this.value + '').replace(/[^0-9]/g, '');
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="NavegacionBody" runat="server">
    <div class="container-fluid">
        <asp:Panel ID="panel_encabezado" runat="server">
            <div class="col-sm-12">
                <hr />
                <h2 class="intro-text text-center">
                    <asp:Label ID="lbl_encabezado1" runat="server" Text="Informe de "></asp:Label>
                    <strong>
                        <asp:Label ID="lbl_encabezado2" runat="server" Text="Cobros"></asp:Label>
                    </strong>
                </h2>
                <hr />
            </div>
        </asp:Panel>
        <asp:Panel ID="panel_cuerpo" runat="server">
            <div class="row form col-sm-12">
                <div class="col-sm-3">
                    <asp:Label ID="lblNroSocio" Text="Numero de Socio:" AssociatedControlID="txtNroSocio"
                        runat="server" />
                    
                    <asp:TextBox ID="txtNroSocio" runat="server" class="form-control solo-numero" placeholder="Filtrar por socio..."
                        MaxLength="5"></asp:TextBox>
                </div>
                <div class="col-sm-3">
                    <asp:Label ID="lblFechaDesde" Text="Fecha Desde:" AssociatedControlID="txtFechaDesde" runat="server" />
                    <asp:TextBox ID="txtFechaDesde" runat="server" class="form-control" placeholder="Desde..."
                        MaxLength="15"></asp:TextBox>
                </div>
               <div class="col-sm-3">
                    <asp:Label ID="lblFechaHasta" Text="Fecha Hasta:" AssociatedControlID="txtFechaHasta" runat="server" />
                    <asp:TextBox ID="txtFechaHasta" runat="server" class="form-control" placeholder="Hasta..."
                        MaxLength="15"></asp:TextBox>
                </div>
                <div class="col-sm-3">

                    <asp:Label ID="lblSocioActivo" Text="Tipo de Socio:" AssociatedControlID="ddlSocioActivo"
                        runat="server" />
                    <asp:DropDownList ID="ddlSocioActivo" runat="server" class="form-control">
                        <asp:ListItem Value="-1">Todos</asp:ListItem>
                        <asp:ListItem Value="1">Activos</asp:ListItem>
                        <asp:ListItem Value="0">Pasivos</asp:ListItem>
                    </asp:DropDownList>
                      <br />  
                </div> 
                                           
            </div>
        </asp:Panel>
          <asp:Panel ID="panel_botones" runat="server">
            <div class="row">
                <br />
                <div class="col-sm-8 col-sm-offset-4">
                    <asp:Button ID="btnGenerarInforme" class="btn btn-primary" runat="server" Text="Generar Informe"
                        UseSubmitBehavior="True" onclick="btnGenerarInforme_Click"></asp:Button>
                    <asp:Button ID="btnCancelar" class="btn btn-warning" runat="server" Text="Cancelar"
                        UseSubmitBehavior="False" onclick="btnCancelar_Click"></asp:Button>
                    <br />
                    <div class="container col-sm-8 panel-collapse">
                        <asp:Label ID="lblMensajeHeader" CssClass="alert-danger" runat="server" Font-Size="X-Large" />
                    </div>
                    <br />
                </div>
            </div>
        </asp:Panel>
        <asp:Panel ID="panel_grilla" runat="server">
            <div class="col-sm-10 col-sm-offset-1">
                <div class="panel panel-default col-sm-12 ">
                    <div class="panel-heading">
                        <strong>Facturas </strong>
                    </div>
                    <div class="panel-body">
                        <div class="table-responsive col-sm-12">
                            <asp:GridView ID="GVCobros" runat="server" class="table"
                                ForeColor="#333333" GridLines="None" EmptyDataText="No se encontraron Facturas..."
                                OnPageIndexChanging="GVCobros_PageIndexChanging" 
                                OnSelectedIndexChanged="GVCobros_SelectedIndexChanged" >
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    
                                    
                                </Columns>
                                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="ControlDarkDark" Font-Bold="True" ForeColor="white" />
                                <PagerStyle BackColor="ControlDarkDark" Font-Bold="True" ForeColor="white" HorizontalAlign="center" />
                                <RowStyle BackColor="Control" ForeColor="#333333" />
                                <SelectedRowStyle BackColor="#250169" Font-Bold="True" ForeColor="#BBBBFF" BorderColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#FDF5AC" />
                                <SortedAscendingHeaderStyle BackColor="#4D0000" />
                                <SortedDescendingCellStyle BackColor="#FCF6C0" />
                                <SortedDescendingHeaderStyle BackColor="#820000" />
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>       
        <asp:Panel ID="panel_footer" Visible="false" runat="server">
            <div class="col-sm-12">
                <div class="text-center">
                    <asp:Label ID="lblMensajeFooter" CssClass="alert-danger" runat="server" Font-Size="X-Large" />
                    <br />
                </div>
            </div>
        </asp:Panel>
    </div>
</asp:Content>
